package com.jdiv.samples.castlevania.applet;

import com.jdiv.JDiv;
import com.jdiv.JProcess;

/**
 * @author  Joyal
 */
public class Konami extends JProcess {
/**
 * @uml.property  name="barra"
 * @uml.associationEnd  
 */
private Barra barra=null;
	public Konami() {
		this.file=Main.fpg_konami;
		this.graph=4;
		this.x=JDiv.getWidth()/2;
		this.y=JDiv.getHeight()/2;
	}
	public void begin() {

		for (int i=4;i<=54;i++){
		  if (i==23) barra=new Barra();
		  if (i==40) barra.move=true;
		  graph=i;
		  frame(75);
		}
		barra.die=true;
		
		JDiv.sleep(200);
		Main.castle=new Castle();
		Main.simon=new Simon();
		Main.bpiedra=new BPiedra();
		
	}

}
